package com.dgut.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.dgut.pojo.AnnualReport;
import com.dgut.pojo.InformationPublicity;
import com.dgut.pojo.IntellectualProperty;
import com.dgut.service.AnnualReportService;
import com.dgut.service.InformationPublicityService;
import com.dgut.service.IntellectualPropertyService;
import com.dgut.pojo.CompanyConversion;
import com.dgut.pojo.CompanyEstablishment;
import com.dgut.service.CompanyConversionService;
import com.dgut.service.CompanyEstablishmentService;
import com.dgut.utils.PageRequestInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

@CrossOrigin
@Api("CompanyServiceController")
@RestController
@RequestMapping("/CompanyServiceController")
public class  CompanyServiceController {
    @Resource
    private InformationPublicityService informationPublicityService;
    @Resource
    private AnnualReportService annualReportService;
    @Resource
    private CompanyEstablishmentService companyEstablishmentService;
    @Resource
    private CompanyConversionService companyConversionService;

    /**
     * start-zwb
     */
    /**
     * end-zwb
     */


    /**
     * start-gxd
     */

    //公司设立
    @ApiOperation("公司建立")
    @PostMapping("/CompanyEstablishment")
    public Object CompanyEstablishment(@ApiParam(value = "需要PageNum和PageSize的封装对象")
                                    @RequestBody CompanyEstablishment companyEstablishment){
        return companyEstablishmentService.CompanyEstablishment(companyEstablishment);
    }

    //公司变更
    @ApiOperation("公司变更")
    @PostMapping("/CompanyConversion")
    public Object CompanyConversion(@ApiParam(value = "需要PageNum和PageSize的封装对象")
                                       @RequestBody CompanyConversion companyConversion){
        return companyConversionService.CompanyConversion(companyConversion);
    }

    /**
     * end-gxd
     */


    /**
     * start-lzh
     */

    //信息公示
    @ApiOperation(value = "信息公示",notes = "")
    @PostMapping("/getIntellectualPropertyByName")
    public Object InsertInformationPublicity(@ApiParam(value = "传信息公示实体类对象",required = true)
                                                @RequestBody(required = true)InformationPublicity informationPublicity){
        return informationPublicityService.InsertInformationPublicity(informationPublicity);
    }

    //工商年报
    @ApiOperation(value = "工商年报",notes = "")
    @PostMapping("/InsertAnnualReport")
    public Object InsertAnnualReport(@ApiParam(value = "传工商年报实体类对象",required = true)
                                     @RequestBody AnnualReport annualReport){
        return annualReportService.InsertAnnualReport(annualReport);
    }
    /**
     * end-lzh
     */

    /**
     * start-hwf
     */
    /**
     * end-hwf
     */
}
